﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace syc.Produce
{
    public partial class 销售产值_IN : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                DL_year.SelectedValue = DateTime.Now.Year.ToString();
                DL_month.SelectedValue = DateTime.Now.Month.ToString();
            }
        }

        protected void save_Click(object sender, EventArgs e)
        {
            if (Y_jh.Text == "" || Y_sj.Text == "")
            {
                this.Message.Text = "请输入数据！";
                return;
            }
            if (T_jh.Text == "" || T_sj.Text == "")
            {
                this.Message.Text = "请输入数据！";
                return;
            }
            if (Dg_jh.Text == "" || Dg_sj.Text == "")
            {
                this.Message.Text = "请输入数据！";
                return;
            }
            if (DS1.Insert() > 0)
            {
                this.Message.Text = "保存成功!";
            }
            else
            {
                this.Message.Text = "保存失败!";
            }

        }
    }
}
